package com.csweimei.rentmanagementtreasure.pop;

import android.content.Context;
import android.text.Html;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.csweimei.rentmanagementtreasure.R;
import com.csweimei.rentmanagementtreasure.utils.GlideHandler;
import com.csweimei.rentmanagementtreasure.utils.ValidateUtils;
import com.lxj.xpopup.core.CenterPopupView;

public class ImageShowPop extends CenterPopupView {


    private ImageView imageView;
    private Context mContext;
    private String imgs;

    public ImageShowPop(@NonNull Context context,String imgUrl) {
        super(context);
        this.mContext = context;
        imgs = imgUrl;
    }



    @Override
    protected void onCreate() {
        super.onCreate();

        imageView = findViewById(R.id.img);
        imageView.setOnClickListener(v -> dismiss());

        GlideHandler.loadLifeWm(mContext,imgs,imageView,10);
    }


    @Override
    protected int getImplLayoutId() {
        return R.layout.popup_img;
    }
}
